//
//  MultiSegmentContainerView.h
//  HouseFilter
//
//  Created by ET|冰琳 on 15/10/8.
//  Copyright © 2015年 ET|冰琳. All rights reserved.
//

#import "BIMultiSegmentControl.h"


@protocol MultiSegmentContainerViewDelegate <NSObject,SegmentSelectProtocol>

- (UIView *)segmentContainerSubViewForIndex:(NSInteger)selectIndex;


@optional
- (CGFloat)heightForContainerViewForIndex:(NSInteger)selectIndex;

- (void)segmentContainerWillDisplaySubView:(UIView *)view index:(NSInteger)index;
- (void)segmentContainerWillEndDisplaySubView:(UIView *)view index:(NSInteger)index;

@end



@interface MultiSegmentContainerView : UIView

- (instancetype)initWithSegmentControl:(BIMultiSegmentControl *)control;

@property (nonatomic, readonly) BIMultiSegmentControl *segmentControl;
@property (nonatomic, weak) id<MultiSegmentContainerViewDelegate> delegate;

@end
